/*
 * Copyright (c) 2006-2022, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2022-08-24     xu     first version
 */
#ifndef MM32F5270_DRV_SPI_H
#define MM32F5270_DRV_SPI_H

#include "board.h"
#include "hal_gpio.h"

#ifdef __cplusplus
extern "C"
{
#endif

rt_err_t rt_hw_spi_device_attach(const char *bus_name,
                                 const char *device_name,
                                 GPIO_Type *cs_gpio,
                                 uint16_t cs_pin);

#ifdef __cplusplus
}
#endif
#endif // MM32F5270_DRV_SPI_H